package com.newbee.sustainability.plugin.annotation;

import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.FIELD})//用于描述用于描述局部变量
@Retention(RetentionPolicy.RUNTIME)//定义了该Annotation被保留的时间长短
@Documented
public @interface Column {
    String name() default "";

    boolean unique() default false;

    boolean nullable() default true;

    boolean insertable() default true;

    boolean updatable() default true;

    String columnDefinition() default "";

    String table() default "";

    int length() default 255;

    int precision() default 0;

    int scale() default 0;
}
